import 'package:fluro/fluro.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter_app10/pages/common/currency_market_page.dart';
import 'package:flutter_app10/pages/common/home_search_page.dart';
import 'package:flutter_app10/pages/login/login_page.dart';
import 'package:flutter_app10/pages/login/register_page.dart';
import 'package:flutter_app10/pages/main/drawerPages/my_coupon_page.dart';
import 'package:flutter_app10/pages/main/drawerPages/my_csol_page.dart';
import 'package:flutter_app10/pages/main/drawerPages/order_manage_page.dart';
import 'package:flutter_app10/pages/main/drawerPages/rate_set_page.dart';
import 'package:flutter_app10/pages/main/drawerPages/safety_set_page.dart';
import 'package:flutter_app10/pages/main/drawerPages/setting_page.dart';
import 'package:flutter_app10/pages/main/main_page.dart';



// 根页面
var rootHandle = Handler(handlerFunc: (BuildContext context, Map<String,List<String>> params){
  return MainPage();
});

// 我的优惠券
var myCouponPageHandle = Handler(handlerFunc: (BuildContext context, Map<String,List<String>> params){
  return MyCouponPage();
});

// 我的点卡
var myCsolPageHandle = Handler(handlerFunc: (BuildContext context, Map<String,List<String>> params){
  return MyCsolPage();
});

// 订单管理
var orderManagePageHandle = Handler(handlerFunc: (BuildContext context, Map<String,List<String>> params){
  return OrderManagePage();
});

// 费率设置
var rateSetPageHandle = Handler(handlerFunc: (BuildContext context, Map<String,List<String>> params){
  return RateSetPage();
});

// 安全设置
var safetySetPageHandle = Handler(handlerFunc: (BuildContext context, Map<String,List<String>> params){
  return SafetySetPage();
});

// 设置
var settingPageHandle = Handler(handlerFunc: (BuildContext context, Map<String,List<String>> params){
  return SettingPage();
});

// 币对行情页
var currencyMarketPageHandle = Handler(handlerFunc: (BuildContext context, Map<String,List<String>> params){
  String currency = params["currency"].first;
  return CurrencyMarketPage(currency: currency,);
});

// 搜索页
var homeSearchPageHandle = Handler(handlerFunc: (BuildContext context, Map<String,List<String>> params){
  return HomeSearchPage();
});

// 登录页
var loginPageHandle = Handler(handlerFunc: (BuildContext context, Map<String,List<String>> params){
  return LoginPage();
});

// 注册页
var registerPageHandle = Handler(handlerFunc: (BuildContext context, Map<String,List<String>> params){
  return RegisterPage();
});

